package com.music.order.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.music.common.core.annotation.Excel;
import com.music.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
/**
 * 订单列表对象 order
 * 
 * @author ruoyi
 * @date 2024-10-22
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long orderId;

    /** 付款账户 */
    @Excel(name = "付款账户")
    private Long userId;

    /** 充值账户 */
    @Excel(name = "充值账户")
    private Long activateUserId;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer orderStatus;

    /** 数量 */
    @Excel(name = "数量")
    private Integer orderCount;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer orderDelete;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal orderTotal;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderCreateTime;


    public Order() {
    }



    public Long getActivateUserId() {
        return activateUserId;
    }

    public void setActivateUserId(Long activateUserId) {
        this.activateUserId = activateUserId;
    }

    public Integer getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    public Date getOrderCreateTime() {
        return orderCreateTime;
    }

    public void setOrderCreateTime(Date orderCreateTime) {
        this.orderCreateTime = orderCreateTime;
    }

    public Integer getOrderDelete() {
        return orderDelete;
    }

    public void setOrderDelete(Integer orderDelete) {
        this.orderDelete = orderDelete;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public BigDecimal getOrderTotal() {
        return orderTotal;
    }

    public void setOrderTotal(BigDecimal orderTotal) {
        this.orderTotal = orderTotal;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("activateUserId", getActivateUserId())
            .append("orderStatus", getOrderStatus())
            .append("orderCount", getOrderCount())
            .append("orderDelete", getOrderDelete())
            .append("orderTotal", getOrderTotal())
            .append("orderCreateTime", getOrderCreateTime())
            .toString();
    }
}
